import request from '@/utils/request'

// 查询单据主表列表
export function listRyDepotHead(query) {
  return request({
    url: '/purchase/ryDepotHead/list',
    method: 'get',
    params: query
  })
}
// 查询单据主表列表
export function dataprocess(list) {
  // var listt=encodeURI(encodeURI("list"));
  return request({
    url: '/infc/dataProcess',
    method: 'post',
    params: list
  })
}
// 查询单据主表详细
export function getRyDepotHead(id) {
  return request({
    url: '/purchase/ryDepotHead/' + id,
    method: 'get'
  })
}

// 新增单据主表
export function addRyDepotHead(data) {
  return request({
    url: '/purchase/ryDepotHead',
    method: 'post',
    data: data
  })
}

// 修改单据主表
export function updateRyDepotHead(data) {
  return request({
    url: '/purchase/ryDepotHead',
    method: 'put',
    data: data
  })
}

// 删除单据主表
export function delRyDepotHead(id) {
  return request({
    url: '/purchase/ryDepotHead/' + id,
    method: 'delete'
  })
}
